package com.shanzmoo.db.module.merchant.domain.dto;

import com.shanzmoo.db.common.entity.BaseConvertEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 扫呗订单保存实体
 * </p>
 *
 * @author fs
 * @since 2021-04-06
 */
@Data
@ApiModel(value = "MerchantOrderSaveDto", description = "订单保存对象")
public class MerchantOrderSaveDto extends BaseConvertEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "金额(分)")
    @DecimalMin(value = "1",message = "最少需要支付1分钱")
    private Integer amount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "终端号")
    @NotBlank(message = "设备终端号不可为空")
    private String terminalNo;

    @ApiModelProperty(value = "支付方式：010微信，020支付宝，060qq钱包，090口碑，100翼支付，140和包支付（仅限和包通道），150福卡支付")
    @NotNull(message = "支付环境不可为空")
    private String payType;
}
